#ifndef TALKMSGLIST_H
#define TALKMSGLIST_H


#include "contactinfo.h"
#include "contactlist.h"
#include <QListWidget>
#include <QMenu>
#include <QMouseEvent>
#include <QLineEdit>
#include <QHostAddress>
class TalkMsgList : public QListWidget
{
    Q_OBJECT
public:
    explicit TalkMsgList(QListWidget *parent = 0);
    void mousePressEvent(QMouseEvent *event);
    QListWidgetItem *currentItem=nullptr;
signals:
    void contactItemClick(ContactInfo *contactInfo);
public slots:
    void slotAddMsg(ContactInfo *contactInfo,bool isMe=true);


};



#endif // TALKMSGLIST_H
